package com.yenlien.traceyun.control.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 银行分类
 */
@Entity
@Table(name = "t_bank_level")
@Data
public class BankLevel extends BaseEntity {
    @Column(name = "name")
    private String name;     //总行名称

    @Column(name = "alias", length = 20)
    private String alias;           //简称

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;            //申请时间

    @Column(name = "img_path", length = 255)
    private String imgPath;           //银行log
}
